#ifndef WeixinApi_H
#define WeixinApi_H

#include <vector>
#include <string>
using std::string;
using std::vector;

class WeixinApi
{
public:
	static int GetAccessToken( const string & sAppid, const string & sAppSeceret, string & sAccessTokenOut, int & iExpireTimeOut );
	
	static int SendTxt( const string & sAccessToken, const string & sContent, const vector<string> & toUserList, bool isNotify, const string & sNotifyContent, string & sStatusOut );
	
	static int SendImg( const string & sAccessToken, const string & sFilePath, const vector<string> & toUserList, bool isNotify, const string & sNotifyContent, string & sStatusOut );

	
	/*
	static int SendVoice();
	
	static int SendRichMsg();
	
	static int RecvMsg();
	*/
public:
	static int PostMedia( const string & sAccessToken, const string & sFileType, const string & sFilePath, const string & sFileName, string & sMediaId );
	
	static int SendMsg( const string & sAccessToken, unsigned long long msgid, const vector<string> & toUserList, const string & sNotifyContent, string & sStatusOut );


private:
	WeixinApi();
};


#endif
